package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.dao.PaymentDao;
import com.atguigu.springcloud.service.PaymentService;
import com.guigu.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Date 2021/7/23 9:14
 * @Created by wangle
 * @Description
 */
@Service
public class Paymentservuceimpl implements PaymentService {
    @Resource
    PaymentDao paymentDao;
    @Override
    public int creat(Payment payment) {
        return paymentDao.creat(payment);
    }

    @Override
    public Payment getpaymentbyid(Long id) {
        return paymentDao.getpaymentbyid(id);
    }
}
